//package com.douqu.game.merge;
//
//import com.douqu.game.core.entity.Player;
//import com.douqu.game.core.factory.LoadFactory;
//
//import java.text.MessageFormat;
//
///**
// * @Author: Bean
// * @Description:
// * @Date: 2018-03-24 15:31
// */
//public class MergeUtils {
//
//
//    public static void main(String[] args)
//    {
//        LoadFactory.loadGameObject("data");
//
//        DatabaseFactory databaseFactory = getDatabaseFactory("127.0.0.1", "3306", "slg", "root", "123456");
//        Player player = databaseFactory.loadPlayer("QUICK_1");
//        System.out.println("player -> " + player);
//        System.exit(0);
//    }
//
//    public static DatabaseFactory getDatabaseFactory(String host, String port, String db, String user, String pwd)
//    {
//        String URL = "jdbc:mysql://{0}:{1}/{2}?useUnicode=true&characterEncoding=utf-8&autoReconnect=true";
//        String url = MessageFormat.format(URL, host, port, db);
//        return new DatabaseFactory(url, user, pwd);
//    }
//
//
//}
